from django.contrib import admin

from login.models import *

# Register your models here.


admin.site.site_title = "后台管理系统"
admin.site.site_header = "后台管理系统"
admin.site.index_title = "后台管理系统"


class UserManager(admin.ModelAdmin):
    # 列表页显示那些字段
    list_display = ['id', 'name', 'type', 'pswd', 'phone', 'email', 'time', 'is_active', 'admin_sample']


class MediaManager(admin.ModelAdmin):
    list_display = ['id', 'title', 'user', 'synopsis', 'time', 'vote', 'is_active','admin_sample']


admin.site.register(User, UserManager)
admin.site.register(Media, MediaManager)
